home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / old / x11_init.h next >
C/C++ Source or Header  |  1999-01-01  |  659b  |  42 lines

  1. /* Copyright (c) 1995 by A BIG Corporation.  All Rights Reserved */
  2.  
  3. /***
  4.    NAME
  5.      X11_init
  6.    PURPOSE
  7.      
  8.    NOTES
  9.      
  10.    HISTORY
  11.      Terje Pedersen - Mar 18, 1995: Created.
  12. ***/
  13.  
  14. #ifndef X11_INIT
  15. #define X11_INIT
  16.  
  17. struct Library *X11Base;
  18. struct Library *XtBase;
  19.  
  20. void X11_open(void);
  21. void X11_close(void);
  22.  
  23. void X11_open(){
  24.   X11Base = OpenLibrary("X11.library",0);
  25.   if(!X11Base){
  26.     printf("can't open X11.library!\n");
  27.     exit(0);
  28.   }
  29.   XtBase = OpenLibrary("Xt.library",0);
  30.   if(!XtBase){
  31.     printf("can't open Xt.library!\n");
  32.     exit(0);
  33.   }
  34. }
  35.  
  36. void X11_close(){
  37.   CloseLibrary(XtBase);
  38.   CloseLibrary(X11Base);
  39. }
  40.  
  41. #endif /* X11_INIT */
  42.